<template>
  <div class="card-model">
    <div v-if="title" class="title"><i class="point"></i>{{ title }}</div>
    <div class="content">
      <slot></slot>
    </div>
  </div>
</template>

<script setup lang="ts">
const { title } = defineProps(['title'])
</script>

<style lang="scss" scoped>
.card-model {
  width: 100%;
  border: 1px solid #155997;
  .title {
    display: flex;
    align-items: center;
    box-shadow: 0px 0px 5px 1px #155997 inset;
    padding: 5px;
    color: #fff;
    height: 30px;
    box-sizing: border-box;
    font-size: 16px;
    .point {
      display: inline-block;
      height: 4px;
      width: 4px;
      border-radius: 50%;
      background: #17c8f2;
      margin-right: 5px;
    }
  }
  .content {
    width: 100%;
    border-top: 1px solid #155997;
    box-shadow: 0px 0px 5px 1px #155997 inset;
  }
}
</style>
